local ItemData = require("bag.Proto").ItemData
local HeroSimple = require("hero.Proto").HeroSimple
local Attr = require("role.Proto").Attr

--星耀共鸣
--主界面查询
CG_XINGYAOMEN_GONGMING_QUERY = {}
XyGmGridNet = {
	{"index",			1,		"short"}, --格子下标
	{"hero",			2,		HeroSimple},
	{"oldLV",			1,		"short"}, --原lv
	{"leftTime",		1,		"int"}, --冷却剩余时间
}
GC_XINGYAOMEN_GONGMING_QUERY = {
	{"grid",			50,		XyGmGridNet},
	{"maxGrid",			1,		"short"}, --一共x个格子
	{"defList",			5,		HeroSimple}, --x个守卫者
	{"cdClean",			1,		ItemData}, --清楚冷却时间道具
}

GC_XINGYAOMEN_GONGMING_REDS = {
	{"nextGridRed",		1,		"byte"} --未解锁第一个格子红点
}

--解锁格子查询
CG_XINGYAOMEN_GONGMING_OPEN_QUERY = {
	{"gridIndex",		1,		"byte"},
}
GC_XINGYAOMEN_GONGMING_OPEN_QUERY = {
	{"cost",			1,		ItemData}, --消耗
	{"now",				1,		"int"}, --当前拥有
}

--解锁格子
CG_XINGYAOMEN_GONGMING_OPEN_DO = {
	{"gridIndex",		1,		"byte"},
}
GC_XINGYAOMEN_GONGMING_OPEN_DO = {
	{"gridIndex",		1,		"byte"},
}

--入驻英雄
CG_XINGYAOMEN_GONGMING_PUTON = {
	{"heroIndex",		1,		"short"}, --英雄背包下标
	{"gridIndex",		1,		"byte"},
}
GC_XINGYAOMEN_GONGMING_PUTON = {
	{"heroIndex",		1,		"short"}, --英雄背包下标
	{"gridIndex",		1,		"byte"},
	{"hero",			1,		HeroSimple},
	{"grid",			1,		XyGmGridNet},
}

--英雄卸下
CG_XINGYAOMEN_GONGMING_PUTOFF = {
	{"gridIndex",		1,		"byte"},
}
GC_XINGYAOMEN_GONGMING_PUTOFF = {
	{"gridIndex",		1,		"byte"},
	{"leftTime",		1,		"int"},--冷却剩余时间
}

--去除冷却时间
CG_XINGYAOMEN_GONGMING_CDCLEAN = {
	{"gridIndex",		1,		"byte"},
}
GC_XINGYAOMEN_GONGMING_CDCLEAN = {
	{"gridIndex",		1,		"byte"},
}

--星耀之力
CG_XINGYAOMEN_POWER_QUERY = {}
XyPowerLvNet = {
	{"camp",			1,		"byte"}, --阵营
	{"lv",				1,		"short"}, --等级
}
GC_XINGYAOMEN_POWER_QUERY = {
	{"lvs",				5,		XyPowerLvNet},
	{"reds",			5,		"int"}, --[1][2][3]
}

--红点
GC_XINGYAOMEN_POWER_REDS = {
	{"camp",			1,		"byte"}, --阵营
	{"lvRed",			1,		"byte"}, --等级红点
	{"qualityRed",		1,		"byte"}, --品阶红点
}

-- xx力等级
CG_XINGYAOMEN_POWERLV_QUERY = {
	{"camp",			1,		"byte"}, --阵营
}
XyPowerAttrsNet = {
	{"attrs",			3,		Attr}, --属性加成[0] = 0 没有加成
	{"attrsShow",		3,		Attr}, --属性加成，仅展示，没有加成也需要展示
}
GC_XINGYAOMEN_POWERLV_QUERY = {
	{"lv",				1,		XyPowerLvNet},
	{"nowExp",			1,		"short"}, --当前经验
	{"needExp",			1,		"short"}, --需要经验
	{"lvAttrs",			1,		XyPowerAttrsNet}, --等级加成信息
	{"nextAttrs",		3,		Attr}, --下一级属性加成[0] = 0 没有加成
	{"qualityAttrs",	1,		XyPowerAttrsNet}, --品阶加成信息
	{"upCost",			2,		ItemData}, --升级消耗 [0]=0 满级
}

-- 升级
CG_XINGYAOMEN_POWERLV_UP = {
	{"camp",			1,		"byte"}, --阵营
}

-- xx力品阶
CG_XINGYAOMEN_POWERQUALITY_QUERY = {
	{"camp",			1,		"byte"}, --阵营
}
GC_XINGYAOMEN_POWERQUALITY_QUERY = {
	{"lv",				1,		XyPowerLvNet},
	{"lvAttrs",			1,		XyPowerAttrsNet}, --等级加成信息
	{"qualityAttrs",	1,		XyPowerAttrsNet}, --品阶加成信息
	{"quality",			1,		"byte"}, --品阶
	{"star",			1,		"byte"}, --星级
	{"upCost",			2,		ItemData}, --进阶消耗 [0]=0 满级
	{"nextAttrs",		3,		Attr}, --属性加成[0] = 0 没有加成
	{"lvCanUp",			1,		"short"}, --0不需要显示 >0 xxx之力升到x级继续进阶
}

-- 进阶
CG_XINGYAOMEN_POWERQUALITY_UP = {
	{"camp",			1,		"byte"}, --阵营
}

-- 重置查询
CG_XINGYAOMEN_POWERQUALITY_RESET = {
	{"camp",			1,		"byte"}, --阵营
}
GC_XINGYAOMEN_POWERQUALITY_RESET = {
	{"resetMax",		1,		"byte"}, --重置上限
	{"resetLeft",		1,		"byte"}, --剩余重置次数
	{"resetCost",		1,		ItemData}, --重置道具
	{"backItem",		2,		ItemData}, --返还道具
}

CG_XINGYAOMEN_POWERQUALITY_RESET_DO = {
	{"camp",			1,		"byte"}, --阵营
}

-- 进阶预览
CG_XINGYAOMEN_POWERQUALITY_ATTRS = {
	{"camp",			1,		"byte"}, --阵营
}
XyPowerAttrShowNet = {
	{"quality",			1,		"byte"}, --品阶
	{"attrs",			3,		Attr}, --属性加成[0] = 0 没有加成
}
GC_XINGYAOMEN_POWERQUALITY_ATTRS = {
	{"camp",			1,		"byte"}, --阵营
	{"attrsShow",		3,		Attr}, --所有属性加成类别，仅展示
	{"showList",		50,		XyPowerAttrShowNet},
}